//
//  PicHeaderView.m
//  FlowerRainGround
//
//  Created by zfc on 16/4/20.
//  Copyright © 2016年 lanou. All rights reserved.
//

#import "PicHeaderView.h"
#import "DetailPostViewController.h"
#import "RecommendModel.h"
@implementation PicHeaderView


- (instancetype)initWithFrame:(CGRect)frame {
    if(self = [super initWithFrame:frame]) {
        DetailPostViewController *detailVC = [[DetailPostViewController alloc] init];
        RecommendModel *model = detailVC.model;
        
        [self.headImg sd_setImageWithURL:[NSURL URLWithString:model.customerModel.headImg]];
        self.userNameLabel.text = model.customerModel.userName;
        self.contentLabel.text = model.customerModel.content;
        self.createDataLabel.text = model.customerModel.createDate;

    }
    return self;
}

+ (instancetype)headerView {
    return [[[NSBundle mainBundle] loadNibNamed:@"PicHeaderView" owner:nil options:nil] lastObject];
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
